<template>
  <div class="home">
    <h2>Home组件</h2>
    <div class="home-nav">
      <router-link to="/home/recommend">推荐</router-link>
      <router-link to="/home/ranking">排行榜</router-link>

      <button @click="loginOutClick">退出登录</button>
    </div>
  </div>
  <router-view></router-view>
</template>

<script setup>
  function loginOutClick(params) {
    localStorage.removeItem('token')
  }
</script>

<style scoped>
</style>